import Vue from 'vue'
import App from './App'
import store from './store' // store
import plugins from './plugins' // plugins
import './permission' // permission control 权限控制 用于路由守卫 未登录跳转登录页
// import uView from '@/uni_modules/uview-ui/index.js'
import uView from '@/uni_modules/uview-ui'

//import VueLoadmore from 'vuejs-loadmore';

//Vue.use(VueLoadmore);


import _ from 'lodash';

Vue.use(plugins)
// import uView from 'uview-ui'
Vue.use(uView)

// 全局组件:

// 弹出层
import popUp from '@/components/popUp/popUp.vue'
Vue.component('popUp', popUp)
// 搜索添加用户层
import addAndSearch from '@/components/addAndSearch/addAndSearch.vue'
Vue.component('addAndSearch', addAndSearch)

Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.$_ = _;

App.mpType = 'app'

const app = new Vue({
	...App
})

app.$mount()
